﻿<h3 class="important-tittle">Using Linq</h3>

<div class="text-center">
    <img src="/App/Examples/v1/Filtering data/Images/linq.gif" />
</div>

<p>
    In this example we are taking some records from our fake data base as the user changes the input.
    <i class="text-muted">DataBase.Cities</i> is no more than an array that stores our data.
</p>

<p>
    Drag a TextBox and a CartesianChart from your toolbox.
</p>

<h4>Code Behind</h4>

<i class="text-muted">City.cs</i>

<pre class="prettyprint" url="https://raw.githubusercontent.com/beto-rodriguez/Live-Charts/master/Examples/WinForms/Cartesian/Linq/City.cs"></pre>

<hr />

<pre class="prettyprint" url="https://raw.githubusercontent.com/beto-rodriguez/Live-Charts/master/Examples/WinForms/Cartesian/Linq/LinqExample.cs"></pre>